package com.qixin.part.controller;


import com.qixin.api.bean.ComMoneyInfo;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;
import com.qixin.api.service.ComMoneyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 资金明细表 前端控制器
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-15
 */
@Controller
@RequestMapping("/comMoneyInfo")
public class ComMoneyInfoController {
	@Autowired
	ComMoneyInfoService comMoneyInfoService;

	/*
	跳转界面充值明细
	 */
	@RequestMapping("/main.html")
	public String carftl() { return "company/Recharge_money_detail"; }


	/*
		充电明细查询
		 */
	@RequestMapping("/list")
	@ResponseBody
	public ResultPage<ComMoneyInfo> list(VoPage voPage, HttpSession session,ComMoneyInfo comMoneyInfo) {
		ResultPage<ComMoneyInfo> resultPage= comMoneyInfoService.selectMyPage(voPage,session,comMoneyInfo);

		return  resultPage;
	}
}
